package br.nsi.ardae.modelo_teste;

public class Tempo {

	private String data;
	private int dia;
	private int mes;
	private int ano;
	private String diaDaSemana;
	private int bimestre;
	private int trimestre;
	private int semestre;

	public Tempo(String data, int dia, int mes, int ano, String diaDaSemana,
			int bimestre, int trimestre, int semestre) {
	
		this.dia = dia;
		this.mes = mes;
		this.ano = ano;
		this.data = String.valueOf(dia)+"/"+String.valueOf(mes)+"/"+String.valueOf(ano);;
		this.diaDaSemana = diaDaSemana;
		
		switch (mes){
			case 1: bimestre=1;trimestre=1;semestre=1; break;
			case 2: bimestre=1;trimestre=1;semestre=1;break;
			case 3: bimestre=2;trimestre=1;semestre=1;break;
			case 4: bimestre=2;trimestre=2;semestre=1;break;
			case 5: bimestre=3;trimestre=2;semestre=1;break;
			case 6: bimestre=3;trimestre=2;semestre=1;break;
			case 7: bimestre=4;trimestre=3;semestre=2;break;
			case 8: bimestre=4;trimestre=3;semestre=2;break;
			case 9: bimestre=5;trimestre=3;semestre=2;break;
			case 10: bimestre=5;trimestre=4;semestre=2;break;
			case 11: bimestre=6;trimestre=4;semestre=2;break;
			case 12: bimestre=6;trimestre=4;semestre=2;break;
		}
	}
	
	
}
